﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EFFC.Net.Data.DBData;
using EFFC.Net.Returns;

namespace EFFC.Net.BatchBuilder.Returns
{
    [Serializable]
    public class BatchLogicRtn : ReturnStd
    {
        public BatchLogicRtn()
        {
            this.AddReElement("IsSuccess", typeof(bool));
            this.AddReElement("DataSet", typeof(DataSetStd));
            this.AddReElement("DataTable", typeof(DataTableStd));
            this.AddReElement("AlertMessage");
            this.AddReElement("ConfirmMessage");

        }

        public DataSetStd R_DataSet
        {
            get
            {
                return this.GetValue<DataSetStd>("DataSet");
            }
            set
            {
                _p["DataSet"].Value = value;
            }
        }
        public DataTableStd R_DataTable
        {
            get
            {
                return this.GetValue<DataTableStd>("DataTable");
            }
            set
            {
                _p["DataTable"].Value = value;
            }
        }
        public string AlertMessage
        {
            get
            {
                return this.GetValue<string>("AlertMessage");
            }
            set
            {
                _p["AlertMessage"].Value = value;
            }

        }
        public string ConfirmMessage
        {
            get
            {
                return this.GetValue<string>("ConfirmMessage");
            }
            set
            {
                _p["ConfirmMessage"].Value = value;
            }

        }
        public bool IsSuccess
        {
            get
            {
                return this.GetValue<bool>("IsSuccess");
            }
            set
            {
                _p["IsSuccess"].Value = value;
            }
        }
    }
}
